﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;


public partial class CMS_Admin_Tree : System.Web.UI.Page
{
    Usas.BLL.Cms.cmsType ct = new Usas.BLL.Cms.cmsType();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                ShowMode();
            }
            catch
            {
            }
        }
    }


    private void ShowMode()
    {
        string a = Request["a"].ToString();
        switch (a)
        {
            case "d":
                CTV.IntiTree(CMS_Control_CmsRoleTreeView.ShowMode.Default);
                break;
            case "c":

                CTV.IntiTree(CMS_Control_CmsRoleTreeView.ShowMode.Check);
                break;
            case "h":
                CTV.IntiTree(CMS_Control_CmsRoleTreeView.ShowMode.Drop);
                break;
        }
    }
}
